package _998YeWuDaiBiao;

/**
 * @BusinessDelegate: 业务代表
 * @author: ZBoHang
 * @time: 2021/9/18 9:47
 */
public class BusinessDelegate {
    private BusinessLookUp lookUpService = new BusinessLookUp();
    private  BusinessService businessService;
    private String serviceType;

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public void doTask() {
        businessService = lookUpService.getBusinessService(serviceType);
        businessService.doProcessing();
    }
}
